<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	String contextPath = application.getContextPath();
	pageContext.setAttribute("path", contextPath);
%>
﻿<!DOCTYPE HTML>
<html>
<head>
<jsp:include page="common_header.jsp" flush="true"></jsp:include>
<title>我的桌面</title>
</head>
<body>
<div class="page-container">
	<p class="f-20 text-success">欢迎使用JBase <span class="f-14">v0.1</span>后台模版！</p>
	<p>上次登录IP：<span id="lastLoginIp">-</span>  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;上次登录时间：<span id="lastLoginTime">-</span></p>
	<table class="table table-border table-bordered table-bg">
		<thead>
			<tr>
				<th colspan="7" scope="col">信息统计</th>
			</tr>
			<tr class="text-c">
				<th>统计</th>
				<th>资讯库</th>
				<th>图片库</th>
				<th>产品库</th>
				<th>用户</th>
				<th>管理员</th>
			</tr>
		</thead>
		<tbody>
			<tr class="text-c">
				<td>总数</td>
				<td>92</td>
				<td>9</td>
				<td>0</td>
				<td>8</td>
				<td>20</td>
			</tr>
			<tr class="text-c">
				<td>今日</td>
				<td>0</td>
				<td>0</td>
				<td>0</td>
				<td>0</td>
				<td>0</td>
			</tr>
			<tr class="text-c">
				<td>昨日</td>
				<td>0</td>
				<td>0</td>
				<td>0</td>
				<td>0</td>
				<td>0</td>
			</tr>
			<tr class="text-c">
				<td>本周</td>
				<td>2</td>
				<td>0</td>
				<td>0</td>
				<td>0</td>
				<td>0</td>
			</tr>
			<tr class="text-c">
				<td>本月</td>
				<td>2</td>
				<td>0</td>
				<td>0</td>
				<td>0</td>
				<td>0</td>
			</tr>
		</tbody>
	</table>
	<table class="table table-border table-bordered table-bg mt-20">
		<thead>
			<tr>
				<th colspan="2" scope="col">服务器信息</th>
			</tr>
		</thead>
		<tbody>
			<tr>
				<th width="30%">服务器主机名</th>
				<td><span id="serverHost">http://127.0.0.1/</span></td>
			</tr>
			<tr>
				<td>服务器IP地址</td>
				<td id="serverIp">192.168.1.1</td>
			</tr>
			<tr>
				<td>服务器域名</td>
				<td id="domain">www.h-ui.net</td>
			</tr>
			<tr>
				<td>服务器端口 </td>
				<td id="port">80</td>
			</tr>
			<tr>
				<td>MAC</td>
				<td id="mac">Microsoft-IIS/6.0</td>
			</tr>
			<tr>
				<td>用户当前文件目录 </td>
				<td id="userCurrentDir">D:\WebSite\HanXiPuTai.com\XinYiCMS.Web\</td>
			</tr>
			<tr>
				<td>用户主目录 </td>
				<td id="userHome">D:\WebSite\HanXiPuTai.com\XinYiCMS.Web\</td>
			</tr>
			<tr>
				<td>服务器操作系统 </td>
				<td id="osName">Microsoft Windows NT 5.2.3790 Service Pack 2</td>
			</tr>
			<tr>
				<td>操作系统版本 </td>
				<td id="osVersion">C:\WINDOWS\system32</td>
			</tr>
			<tr>
				<td>文件分隔符 </td>
				<td id="fileSeparator">30000秒</td>
			</tr>
			<tr>
				<td>服务器当前时间 </td>
				<td id="serverTime">2014-6-14 12:06:23</td>
			</tr>
			<tr>
				<td>服务器上次启动到现在已运行 </td>
				<td id="alreadyRunTime">7210分钟</td>
			</tr>
			<tr>
				<td>CPU 总数 </td>
				<td id="cpuNum">4</td>
			</tr>
			<tr>
				<td>CPU 信息 </td>
				<td id="cpuInfo">x86 Family 6 Model 42 Stepping 1, GenuineIntel</td>
			</tr>
			<tr>
				<td>JVM总内存 </td>
				<td id="totalMemory">52480M</td>
			</tr>
			<tr>
				<td>JVM空闲内存 </td>
				<td id="freeMemory">52480M</td>
			</tr>
			<tr>
				<td>JVM最大内存 </td>
				<td id="maxMemory">52480M</td>
			</tr>
			<tr>
				<td>当前程序占用内存 </td>
				<td id="usedMemory">3.29M</td>
			</tr>
			<tr>
				<td>当前Session数量 </td>
				<td id="sessionNum">8</td>
			</tr>
			<tr>
				<td>Java的运行环境版本 </td>
				<td id="javaVersion">8</td>
			</tr>
			<tr>
				<td>Java的运行环境供应商 </td>
				<td id="javaEnvSupplier">8</td>
			</tr>
			<tr>
				<td>Java供应商的URL </td>
				<td id="javaEnvUrl">8</td>
			</tr>
			<tr>
				<td>Java的安装路径 </td>
				<td id="javaInstallPath">8</td>
			</tr>
			<tr>
				<td>Java的虚拟机规范版本 </td>
				<td id="jvmSpecVersion">8</td>
			</tr>
			<tr>
				<td>Java的虚拟机规范供应商 </td>
				<td id="jvmSpecSupplier">8</td>
			</tr>
			<tr>
				<td>Java的虚拟机规范名称 </td>
				<td id="jvmSpecName">8</td>
			</tr>
			<tr>
				<td>Java的虚拟机实现版本 </td>
				<td id="jvmImplVersion">8</td>
			</tr>
			<tr>
				<td>Java的虚拟机实现供应商 </td>
				<td id="jvmImplSupplier">8</td>
			</tr>
			<tr>
				<td>Java的虚拟机实现名称 </td>
				<td id="jvmImplName">8</td>
			</tr>
			<tr>
				<td>Java运行时环境规范版本 </td>
				<td id="jvmRuntimeEnvSpecVersion">8</td>
			</tr>
			<tr>
				<td>Java运行时环境规范供应商 </td>
				<td id="jvmRuntimeEnvSpecSupplier">8</td>
			</tr>
			<tr>
				<td>Java运行时环境规范名称 </td>
				<td id="jvmRuntimeEnvSpecName">8</td>
			</tr>
			<tr>
				<td>Java的类格式版本号 </td>
				<td id="javaClsFomatVersion">8</td>
			</tr>
			<tr>
				<td>Java的类路径 </td>
				<td id="javaClassPath">8</td>
			</tr>
			<tr>
				<td>加载库时搜索的路径列表 </td>
				<td id="javaLibPath">8</td>
			</tr>
			<tr>
				<td>默认的临时文件路径 </td>
				<td id="javaTmpPath">8</td>
			</tr>
			<tr>
				<td>一个或多个扩展目录的路径 </td>
				<td id="javaExtPath">8</td>
			</tr>
			<tr>
				<td>当前SessionID </td>
				<td id="sessionId">gznhpwmp34004345jz2q3l45</td>
			</tr>
			<tr>
				<td>当前系统用户名 </td>
				<td id="serverUsername">NETWORK SERVICE</td>
			</tr>
		</tbody>
	</table>
</div>
<footer class="footer mt-20">
	<div class="container">
		<p>感谢jQuery、layer、laypage、Validform、UEditor、My97DatePicker、iconfont、Datatables、WebUploaded、icheck、highcharts、bootstrap-Switch<br>
			Copyright &copy;2015-2017 H-ui.admin v3.1 All Rights Reserved.<br>
			本后台系统由<a href="http://www.h-ui.net/" target="_blank" title="H-ui前端框架">H-ui前端框架</a>提供前端技术支持</p>
	</div>
</footer>
<jsp:include page="_footer.jsp" flush="true"></jsp:include>
<script type="text/javascript">

$(function(){
	$.getJSON('${path }/user/welcomeInfo.do', {}, function(json) {
		if(json.code == 0) {
			var obj = json.data;
			var systemInfo = obj.systemInfo;
			$('#lastLoginIp').text(obj.lastLoginIp);
			$('#lastLoginTime').text(obj.lastLoginTime);
			for(attr in systemInfo) {
				var val = systemInfo[attr];
				if(val != null) {
					$('#' + attr).text(val);
				} else {
					$('#' + attr).text('-');
				}
			}
		}
	});
	
});

</script>
</body>
</html>
